package com.qyhl.shop.shop.center;

import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.gyf.immersionbar.ImmersionBar;
import com.qyhl.shop.R;
import com.qyhl.shop.R2;
import com.qyhl.webtv.basiclib.base.BaseActivity;
import com.qyhl.webtv.basiclib.base.BaseIViewPresenter;
import com.qyhl.webtv.commonlib.constant.ARouterPathConstant;

import butterknife.OnClick;

@Route(path = ARouterPathConstant.SHOP_CENTER, extras = ARouterPathConstant.LOGIN_NEEDED)
public class ShopCenterActivity extends BaseActivity {
    @Override
    protected int getContentView() {
        return R.layout.shop_activity_center;
    }

    @Override
    protected void setImmersionBar(ImmersionBar mImmersionBar) {
        setDefaultImmerBar();
    }

    @Override
    protected BaseIViewPresenter initBaseIViewPresenter() {
        return null;
    }

    @Override
    protected void init() {

    }

    @Override
    protected void setListener() {

    }


    @OnClick({R2.id.back_btn, R2.id.coupon_btn, R2.id.shop_btn, R2.id.gift_btn})
    public void onClick(View view) {
        int viewId = view.getId();
        if (viewId == R.id.back_btn) {
            finish();
        } else if (viewId == R.id.coupon_btn) {
            ARouter.getInstance()
                    .build(ARouterPathConstant.SHOP_CENTER_COUPON_LIST)
                    .navigation();
        } else if (viewId == R.id.shop_btn) {
            ARouter.getInstance()
                    .build(ARouterPathConstant.SHOP_CENTER_SHOP_LIST)
                    .navigation();
        } else if (viewId == R.id.gift_btn) {
            ARouter.getInstance()
                    .build(ARouterPathConstant.SHOP_GIFT_LIST)
                    .navigation();
        }
    }
}
